<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <!-- 在data中定义 使用数组语法直接获取 -->
    <h2 :style="[baseStyle, baseStyle2]">{{message}}</h2>
  </div>
  <script src="../js/vue.js"></script>
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        message: '你好啊',
        baseStyle: {backgroundColor:'red'},
        baseStyle2: {fontSize: '100px'}
      },
  })
  </script>
</body>
</html>